package src;

import java.io.IOException;

import lib.messaging.NetworkAddress;

public interface IClientCommandHandler
{
    public static final String CreateUserCommandName = "CreateUser";
    public static final String FetchCommandName = "Fetch";
    public static final String UpdateCommandName = "Update";

    void HandleCreateUserCommand(NetworkAddress serverAddress, int roundID, String userName)
            throws ClassNotFoundException, IOException;

    String HandleFetchCommand(NetworkAddress serverAddress, int roundID, String userName, int postNumber)
            throws ClassNotFoundException, IOException;

    void HandleUpdateCommand(NetworkAddress serverAddress, int roundID, String userName, String data)
            throws ClassNotFoundException, IOException;
}
